home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c / 470 < prev    next >
Internet Message Format  |  1996-08-06  |  1KB

  1. Path: baja.pacificrim.net!news
  2. From: JACKIE MILLER <jmiller@MAIL.PACIFICRIM.NET>
  3. Newsgroups: comp.std.c
  4. Subject: Re: Need help with fprintf(stdprn,format,arg)
  5. Date: 1 Mar 1996 02:55:57 GMT
  6. Organization: MCI
  7. Message-ID: <4h5ovt$dih@baja.pacificrim.net>
  8. References: <4h20na$6ps@baja.pacificrim.net>
  9. NNTP-Posting-Host: whatcom-ppp34.pacificrim.net
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 1.22 (Windows; U; 16bit)
  14.  
  15. KEVIN MILLER <MSIMONDS@MAIL.PACIFICRIM.NET> wrote:
  16. >This short c program doesn't seem to work. I'm runiing a 486 clone with 
  17. >Borland Turbo C.
  18. >
  19. >#include>stdio.h>
  20. >main()
  21. >{
  22. >float f = 2.0134;
  23. >fprintf(stdprn, "Print this on the printer\r\n");
  24. >fprintf(stdprn, "and now some numbers: \r\n");
  25. >fprintf(stdprn, "The square of %f is %f",f,f*f);
  26. >fprintf(stdprn, "\f"); /**form feed**/
  27. >}
  28. >
  29. >any help with redirecting out to the printer would be appreciated.
  30. >
  31. >Thanks
  32. >
  33. >Kevin.
  34. >
  35.  
  36. First, to all who took the time to reply, my thanks and my apologies.
  37. To those who read and did not reply, also my apologies. As a rookie
  38. in the game of life I have a lot to learn not the least of which is the
  39. correct forum for questions of this nature. I was not, at the time, aware
  40. that this newsgroup was for ANSI C only. I am now and promise not to
  41. darken your doors again. Mea Culpa Mea Culpa etc. Sorry and Thanks....
  42.  
  43.